//子类
public class Dog extends Animal{
        public void wangwang() {
            System.out.println(name+"wamgwang");
        }
        public static void main(String[] args) {
            Dog dog = new Dog();
            dog.name = "旺旺";
            dog.eat();
            dog.sleep();
            dog.wangwang();
        }
    }

